package org.asiainfo.system.service;

import org.asiainfo.common.mybatis.stream.core.page.TableDataInfo;
import org.asiainfo.common.mybatis.stream.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

import org.asiainfo.system.domain.vo.SysOperationLogVo;
import org.asiainfo.system.domain.bo.SysOperationLogBo;
import org.asiainfo.system.domain.SysOperationLog;
import com.mybatisflex.core.service.IService;

/**
 * 操作日志记录Service接口
 *
 * @author dotor-ww
 */
public interface SysOperationLogService extends IService<SysOperationLog> {

    /**
     * 通过operationId查询单条数据
     *
     * @param operationId 主键
     * @return 实例对象
     */
    SysOperationLogVo queryById(Long operationId);

    /**
     * 查询
     *
     * @param sysOperationLogBo 筛选条件
     * @return 查询结果
     */
    List<SysOperationLogVo> queryList(SysOperationLogBo sysOperationLogBo);

    /**
     * 分页查询
     *
     * @param sysOperationLogBo 筛选条件
     * @param pageQuery         分页对象
     * @return 查询结果
     */
    TableDataInfo<SysOperationLogVo> queryPageList(SysOperationLogBo sysOperationLogBo, PageQuery pageQuery);

    /**
     * 新增数据
     *
     * @param sysOperationLogBo 实例对象
     * @return 实例对象
     */
    Boolean insertByBo(SysOperationLogBo sysOperationLogBo);

    /**
     * 修改数据
     *
     * @param sysOperationLogBo 实例对象
     */
    Boolean updateByBo(SysOperationLogBo sysOperationLogBo);

    /**
     * 通过主键删除数据
     *
     * @param operationIds 主键
     */
    Boolean deleteWithValidByIds(Collection<Long> operationIds);

    /**
     * 清空数据
     *
     * @return 删除是否成功
     */
    Boolean deleteAll();
}
